package com.ssm.gbq.service;

import com.ssm.gbq.model.Doctor;
import gbq.ssm.utils.BusinessException;
import gbq.ssm.utils.PageBounds;

import java.util.List;

public interface DoctorService {
    /**
     * 获取列表
     */
    PageBounds<Doctor> openDoctorTable(String doctorName,String createTimeMax,String createTimeMin, int currentPage, int pageSize)throws Exception;
    /**
     * 查询所有信息
     */
    List<Doctor> selectAllDoctor();
    /**
     *删除信息
     */
    public int deleteDoctorById(Integer id);
    /**
     * 多删除
     */
    /**
     * 删除
     * @param ids
     * @throws BusinessException
     */
    void deleteDoctorByIds(List<Integer> ids)throws BusinessException;
    /**
     * 添加
     */
    public int  addDoctor(Doctor doctor);
    /**
     * 修改
     */
    public int  updateDoctor(Doctor doctor);
    /**
     *根据ID查询
     */
    public Doctor findById(Integer id);

}
